#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "windows.h"

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
	Q_OBJECT

	enum EMSG
	{
		eMSGStandby, eMSGStandbyDone, eMSGReady, eMSGReadyDone, eMSGEXPOON, eMSGEXPOOFF, eMSGIMGDone, eMSGClose, eMSGError
	};

public:
	explicit MainWindow(QWidget *parent = 0);
	~MainWindow();

protected:
	bool nativeEvent(const QByteArray &eventType, void *message, long *result);

private slots:
	void SlotTimerSendStandbyDone();
	void SlotTimerSendReadyDone();
	void SlotTimerSendEXPOON();
	void SlotTimerSendEXPOOFF();
	void SlotTimerSendIMGDone();
	void SlotTimerClose();
	void SlotTimerError();

private:
	Ui::MainWindow *ui;
	UINT m_msgID[9];
};

#endif // MAINWINDOW_H
